Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODPlatformTypeList

Superclasses
ODObject
Subclasses
none

An object of the ODPlatformTypeList class is an ordered set of ODPlatformType elements.

Description

A platform type list is an ordered set of elements, each specifying a different value of some platform-specific type. Because these elements are of the ODPlatformType type (page 919), they can represent any platform-specific value used to identify data formats for data interchange.

To create a platform type list, call the CreatePlatformTypeList method (page 661) of the storage-system object. If the call to that method specifies an existing platform type list, the new platform type list is initialized to a copy of that list; otherwise, the new list is initialized to an empty list (a list with no elements).

You can add elements one at a time to the end of the platform type list. OpenDoc ensures that each element of a platform type list is unique; if you attempt to add a value that is already in the list, the list remains unchanged. You can remove elements from the list, test whether the list contains a particular element, and get the number of elements in the list. If you need to perform an operation for each element of the list, you can create an object of the ODPlatformTypeListIterator class (page 569) and use it to iterate through the list.

Methods

This section presents summary descriptions of the ODPlatformTypeList methods grouped according to purpose, followed by detailed descriptions in alphabetical order.

Manipulating Elements

AddLast
Adds an element to the end of this platform type list.
Remove
Removes the specified element from this platform type list.
Testing

Contains
Returns a Boolean value that indicates whether this platform type list contains the specified element.
Count
Returns the number of elements in this platform type list.
Creating an Iterator

CreatePlatformTypeListIterator

Creates a platform type-list iterator for this platform type list.

Methods
AddList
Contains
Count
CreatePlatformTypeListIterator
Remove

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help